package com.shenmazong;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "mongoServiceAd")
public class MongoServiceAd {
    private Long id;

    @Indexed(unique = false) //索引的创建
    private Integer userid;
    private String title;
    private String content;
    private Double longitude;
    private Double latitude;

    @Indexed(unique = false) //索引的创建
    private Integer servicetype;
    private Integer fee;
    private Integer views;
    private Integer clicks;
    private String createtime;
}
